home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 1996 May & June
/
Amiga-CD 1996 #5-6.iso
/
demos
/
finaldata
/
fdmacros
/
fromabove
< prev
next >
Wrap
Text File
|
1996-03-22
|
622b
|
29 lines
/* ----------------------------------- */
/* Final Data ARexx Macro. */
/* Repeat data from the cell above. */
/* $VER: RepeatAboveCell 1.0 (21.6.94) */
/* ----------------------------------- */
OPTIONS RESULTS
SelectionInfo
PARSE VAR RESULT selType selCol selRow selBeg selEnd
IF ( (selType = 'CELL') & (selRow > 1) ) THEN DO
/* Clear out any present data */
CurrentCellData
len = LENGTH(RESULT)
IF ( len > 0 ) THEN DO
SetCaret FROM 0 TO len
Delete
END
/* Get the data from the above cell */
CellData selCol selRow-1 EDITFORMAT
data = RESULT
/* Put in the new data */
Insert data
END